package PTA3.ti701;

import java.util.Scanner;

/**
 * @author Lenovo
 */
class Person{
    private String name;
    private int age;
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
}
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Person person1=new Person("lili",19);
        Person person2=new Person("lucy",20);
        System.out.println("this person is "+person1.getName()+",her age is "+person1.getAge());
        System.out.println("this person is "+person2.getName()+",her age is "+person2.getAge());
    }
}
